home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / ibmrt-aix.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  4.8 KB  |  149 lines

  1. /* RTPC AIX machine/system dependent defines
  2.    Copyright (C) 1988 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="usg5-2-2"  */
  25.  
  26. /* Now define a symbol for the cpu type, if your compiler
  27.    does not define it automatically.  */
  28.  
  29. #ifndef IBMAIX
  30. #define IBMAIX
  31. #endif
  32.  
  33. /* Use type int rather than a union, to represent Lisp_Object */
  34. /* This is desirable for most machines.  */
  35.  
  36. #define NO_UNION_TYPE
  37.  
  38. /* No load average information appears in the AIX kernel.  VRM has this
  39.    info, and if anyone desires they should fix fns.c to get it out of VRM */
  40.  
  41. /* Define CANNOT_DUMP on machines where unexec does not work.
  42.    Then the function dump-emacs will not be defined
  43.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  44.  
  45. /* #define CANNOT_DUMP */
  46.  
  47. /* Define addresses, macros, change some setup for dump */
  48.  
  49. #undef COFF
  50. #define NO_REMAP
  51. #undef static
  52.   /* Since NO_REMAP, problem with statics doesn't exist */
  53.  
  54. #define TEXT_START 0x10000000
  55. #define TEXT_END 0
  56. #define DATA_START 0x20000000
  57. #define DATA_END 0
  58.  
  59. /* The data segment in this machine always starts at address 0x20000000.
  60.    An address of data cannot be stored correctly in a Lisp object;
  61.    we always lose the high bits.  We must tell XPNTR to add them back.  */
  62.  
  63. #define DATA_SEG_BITS 0x20000000
  64.  
  65. #define N_BADMAG(x) BADMAG(x)
  66. #define N_TXTOFF(x) A_TEXTPOS(x)
  67. #define N_SYMOFF(x) A_SYMPOS(x)
  68. #define A_TEXT_OFFSET(HDR) sizeof(HDR)
  69. #define ADJUST_EXEC_HEADER \
  70.     unexec_text_start += sizeof(hdr); \
  71.     unexec_data_start = ohdr.a_dbase
  72. #undef ADDR_CORRECT
  73. #define ADDR_CORRECT(x) ((int)(x))
  74.  
  75. /* This is the offset of the executable's text, from the start of the file.  */
  76.  
  77. #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
  78.  
  79. /* Define C_ALLOCA if this machine does not support a true alloca
  80.    and the one written in C should be used instead.
  81.    Define HAVE_ALLOCA to say that the system provides a properly
  82.    working alloca function and it should be used.
  83.    Define neither one if an assembler-language alloca
  84.    in the file alloca.s should be used.  */
  85.  
  86. #define C_ALLOCA
  87. #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
  88.  
  89. /* AIX has PTYs, so define here, along with macros needed to make them work. */
  90.  
  91. #define HAVE_PTYS
  92. #define PTY_ITERATION for (i=0; i<256; i++)
  93. #define PTY_NAME_SPRINTF sprintf (ptyname, "/dev/ptc%d", i);
  94.  
  95. #define PTY_TTY_NAME_SPRINTF                \
  96. { /* Check that server side not already open */        \
  97.   if ((ioctl (*ptyv, PTYSTATUS, 0) & 0xFFFF) != 0)    \
  98.     {                            \
  99.       close (*ptyv);                    \
  100.       continue;                        \
  101.     }                            \
  102.   /* And finally to be sure we can open it later */    \
  103.   sprintf (ptyname, "/dev/pts%d", i);            \
  104.   signal (SIGHUP,SIG_IGN);                \
  105. }     /* ignore hangup at process end */
  106.  
  107. /* TIOCNOTTY doesn't occur on AIX, but the rest
  108.    of the conditionalized code in process.c does
  109.    the right thing if we fake this out.  */
  110. #define TIOCNOTTY IOCTYPE
  111.  
  112. /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
  113.  
  114. /* Specify the font for X to use.  */
  115.  
  116. #define X_DEFAULT_FONT "Rom14.500"
  117.  
  118. /* Here override various assumptions in ymakefile */
  119.  
  120. /* On AIX 2.2.1, use these definitions instead
  121. #define C_SWITCH_MACHINE -I/usr/include -Nn2000
  122. #define LIBS_MACHINE -lX -lrts
  123. */
  124.  
  125. #define C_SWITCH_MACHINE -I/usr/include -I/usr/include/bsd -Nn2000
  126. #define LIBS_MACHINE -lXMenu -lX -lsock -lbsd -lrts
  127.  
  128. #define OBJECTS_MACHINE hftctl.o
  129. #define START_FILES /lib/crt0.o
  130. /* -lXMenu, -lX must precede -lsock, -lbsd */
  131. #define LD_SWITCH_MACHINE -n -T0x10000000 -K -e start
  132.  
  133. #if 0 /* I refuse to promulgate a recommendation that would make
  134.          users unable to debug - RMS.  */
  135. /* delete the following line to foil optimization, enable debugging */
  136. #define C_DEBUG_SWITCH -O
  137. #endif
  138.  
  139.  
  140. /* Setup to do some things BSD way - these won't work previous to AIX 2.1.2 */
  141.  
  142. #include </usr/include/bsd/BSDtoAIX.h>
  143.  
  144. /* AIX utimes allegedly causes SIGSEGV.  */
  145. #undef HAVE_UTIMES /* override configuration decision */
  146.   
  147. /* rocky@watson.ibm.com says this is needed.  */
  148. #define HAVE_FTIME
  149.